package com.tuliyou.service;

import com.tuliyou.common.util.Result;
import com.tuliyou.request.LoginRequest;
import com.tuliyou.request.RegisterRequest;
import com.tuliyou.request.UpdateCurrentRequest;
import com.tuliyou.dto.UserDTO;
import com.tuliyou.vo.LoginVO;
import jakarta.validation.Valid;

// 在 UserService 接口中添加登录方法
public interface UserService {
    Result<UserDTO> register(@Valid RegisterRequest request);

    Result<LoginVO> login(@Valid LoginRequest request);

    Result<UserDTO> getCurrentUser();

    Result<UserDTO> updateCurrentUser(@Valid UpdateCurrentRequest request);

    Result logoff();
}